import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "Home",
    component: () => import("@/views/home.vue"), // 建议进行路由懒加载，优化访问性能
  },
  {
    path: "/doc",
    name: "Doc",
    component: () => import("@/views/Doc.vue"),
  },
  {
    path: "/pat",
    name: "Pat",
    component: () => import("@/views/Pat.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
